package models

// Invitecode undefined
type Invitecode struct {
	ID          int64  `json:"id" gorm:"id"`
	Hongniangid int64  `json:"hongniangid" gorm:"hongniangid"`
	Hongniang   string `json:"hongniang" gorm:"hongniang"`
	Status      int64  `json:"status" gorm:"status"` // 1未绑定 2已绑定
	Inttime     int64  `json:"inttime" gorm:"inttime"`
	Endtime     int64  `json:"endtime" gorm:"endtime"`
	Code        string `json:"code" gorm:"code"`
}

// TableName 表名称
func (*Invitecode) TableName() string {
	return "invitecode"
}

// Hongniang undefined
type Hongniang struct {
	ID               int64   `json:"id" gorm:"id"`
	Name             string  `json:"name" gorm:"name"`
	Phone            string  `json:"phone" gorm:"phone"`
	Invitecode       string  `json:"invitecode" gorm:"invitecode"`
	Image            string  `json:"image" gorm:"image"`
	Sex              int64   `json:"sex" gorm:"sex"` // 1男 2女
	Shengri          string  `json:"shengri" gorm:"shengri"`
	Cityid           int64   `json:"cityid" gorm:"cityid"`
	City             string  `json:"city" gorm:"city"`
	Price            float64 `json:"price" gorm:"price"`             // 余额
	Orderallnum      int64   `json:"orderallnum" gorm:"orderallnum"` // 总接单
	Orderwcnum       int64   `json:"orderwcnum" gorm:"orderwcnum"`   // 完成订单
	Status           int64   `json:"status" gorm:"status"`           // 1正常 2禁用
	Addtime          int64   `json:"addtime" gorm:"addtime"`
	Beijing          string  `json:"beijing" gorm:"beijing"`
	Xitong           int64   `json:"xitong" gorm:"xitong"`     // 1关闭 2接单
	Yuyuedan         int64   `json:"yuyuedan" gorm:"yuyuedan"` // 1关闭 2接单
	Pingjianum       int64   `json:"pingjianum" gorm:"pingjianum"`
	Bangzhu          int64   `json:"bangzhu" gorm:"bangzhu"`
	Hour             int64   `json:"hour" gorm:"hour"`
	Fuwus            string  `json:"fuwus" gorm:"fuwus"`
	Pinfen           float64 `json:"pinfen" gorm:"pinfen"` // 评分
	Xingming         string  `json:"xingming" gorm:"xingming"`
	Cardid           string  `json:"cardid" gorm:"cardid"`
	Cardfront        string  `json:"cardfront" gorm:"cardfront"`
	Cardback         string  `json:"cardback" gorm:"cardback"`
	Pwd              string  `json:"pwd" gorm:"pwd"`
	Allprice         float64 `json:"allprice" gorm:"allprice"`                 // 总收入
	Tixianprice      float64 `json:"tixianprice" gorm:"tixianprice"`           // 已提现
	Tixianzhongprice float64 `json:"tixianzhongprice" gorm:"tixianzhongprice"` // 提现中
	Drzprice         float64 `json:"drzprice" gorm:"drzprice"`                 // 带入账
	Points           int64   `json:"points" gorm:"points"`                     // 积分
}

// Hongniang undefined
type Hongniangsql struct {
	ID      int64  `json:"id" gorm:"id"`
	Name    string `json:"name" gorm:"name"`
	Phone   string `json:"phone" gorm:"phone"`
	Image   string `json:"image" gorm:"image"`
	Sex     int64  `json:"sex" gorm:"sex"` // 1男 2女
	Shengri string `json:"shengri" gorm:"shengri"`
	Cityid  int64  `json:"cityid" gorm:"cityid"`
	City    string `json:"city" gorm:"city"`
}

// TableName 表名称
func (*Hongniang) TableName() string {
	return "hongniang"
}

// Collectuser undefined
type Collectuser struct {
	ID          int64 `json:"id" gorm:"id"`
	Hongniangid int64 `json:"hongniangid" gorm:"hongniangid"`
	Uid         int64 `json:"uid" gorm:"uid"`
}

// TableName 表名称
func (*Collectuser) TableName() string {
	return "collectuser"
}

// Hongniangprice undefined
type Hongniangprice struct {
	ID          int64   `json:"id" gorm:"id"`
	Hongniangid int64   `json:"hongniangid" gorm:"hongniangid"`
	State       int64   `json:"state" gorm:"state"` // 1加 2减
	Addtime     int64   `json:"addtime" gorm:"addtime"`
	Title       string  `json:"title" gorm:"title"`
	Price       float64 `json:"price" gorm:"price"`
	Houprice    float64 `json:"houprice" gorm:"houprice"`
}

// TableName 表名称
func (*Hongniangprice) TableName() string {
	return "hongniangprice"
}

// Hongniangtixian undefined
type Hongniangtixian struct {
	ID          int64   `json:"id" gorm:"id"`
	Hongniangid int64   `json:"hongniangid" gorm:"hongniangid"`
	Yhkid       int64   `json:"yhkid" gorm:"yhkid"`
	Addtime     int64   `json:"addtime" gorm:"addtime"`
	Price       float64 `json:"price" gorm:"price"`
	Status      int64   `json:"status" gorm:"status"` // 1进行中 2成功 3拒绝
}
type Hongniangtixiansql struct {
	ID          int64   `json:"id" gorm:"id"`
	Hongniangid int64   `json:"hongniangid" gorm:"hongniangid"`
	Yhkid       int64   `json:"yhkid" gorm:"yhkid"`
	Addtime     int64   `json:"addtime" gorm:"addtime"`
	Price       float64 `json:"price" gorm:"price"`
	Status      int64   `json:"status" gorm:"status"` // 1进行中 2成功 3拒绝
	Hnname      string  `json:"hnname" gorm:"hnname"`
	Hnphone     string  `json:"hnphone" gorm:"hnphone"`
	Khh         string  `json:"khh" gorm:"khh"`
	Bankid      string  `json:"bankid" gorm:"bankid"`
	Name        string  `json:"name" gorm:"name"`
	Phone       string  `json:"phone" gorm:"phone"`
}

// TableName 表名称
func (*Hongniangtixian) TableName() string {
	return "hongniangtixian"
}

// Hongnianglog undefined
type Hongnianglog struct {
	ID          int64  `json:"id" gorm:"id"`
	Hongniangid int64  `json:"hongniangid" gorm:"hongniangid"`
	Addtime     int64  `json:"addtime" gorm:"addtime"`
	Page        int64  `json:"page" gorm:"page"` // 第几页
	Title       string `json:"title" gorm:"title"`
}

// TableName 表名称
func (*Hongnianglog) TableName() string {
	return "hongnianglog"
}
